#ifndef FILEREVERSETHREAD_H
#define FILEREVERSETHREAD_H

#include <QThread>
#include <QString>


class FileReverseThread : public QThread
{
    Q_OBJECT
public:
    FileReverseThread();

    void closeThread();

signals:
    ///发送遍历到的文件目录
    void sendFilePath(QString file);

public slots:
    ///接收要遍历的目录
    void receiveFilePath(QString filepath);

private:
    void reverseDir(QString path);

protected:
     virtual void run();

 private:
     volatile bool isStop;
     QString _filepath;
};

#endif // FILEREVERSETHREAD_H
